package com.mbc.service.impl;

import com.mbc.mapper.SignMapper;
import com.mbc.pojo.MbcSign;
import com.mbc.service.MapService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MapServiceImpl implements MapService {

    @Autowired
    private SignMapper signMapper;

    /**
     * 按用户 ID 获取
     *
     * @param userId 用户 ID
     * @return {@link MbcSign}
     */
    @Override
    public MbcSign getByUserId(String userId) {
       MbcSign mbcSign = signMapper.getByUserId(userId);
        return mbcSign;
    }
}
